home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_300 / 343_02 / numdefs.h < prev    next >
Text File  |  1990-08-16  |  555b  |  22 lines

  1.  
  2.  
  3.        /**************************************************
  4.        *
  5.        *       file d:\cips\numdefs.h
  6.        *
  7.        *       This file contains some macro definitions
  8.        *       which are used by the get_integer, float,
  9.        *       short, and long functions.
  10.        *
  11.        ***************************************************/
  12.  
  13. #define is_digit(x) ((x >= '0' && x <= '9') ? 1 : 0)
  14.  
  15. #define is_blank(x) ((x == ' ') ? 1 : 0)
  16.  
  17. #define to_decimal(x) (x - '0')
  18.  
  19. #define NO_ERROR  0
  20. #define IO_ERROR -1
  21. #define NULL2   '\0'
  22.